home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / ply15dat.zip / TCUBIC.PI < prev    next >
Text File  |  1992-09-19  |  719b  |  30 lines

  1. // Generic Polyray input File
  2. // Polyray input file: Alexander Enzmann
  3.  
  4. // Set up the camera
  5. viewpoint {
  6.    from <0, 5, -5>
  7.    at   <0, 0,  0>
  8.    up   <0, 1,  0>
  9.    angle 30
  10.    resolution 160, 160
  11.    }
  12.  
  13. // Get various surface finishes
  14. include "..\colors.inc"
  15.  
  16. // Set up background color & lights
  17. background black
  18. light <10, 10, -20>
  19.  
  20. // A drop coming out of water? This is a curve formed by using the equation
  21. // x = 1/2 y^2 (y + 1) as the radius of a cylinder having the y-axis as
  22. // its central axis.
  23. object {
  24.      object { polynomial x^2 + z^2 - 0.5*(y^3 + y^2) }
  25.    & object { box <-1, -1, -1>, <1, 1, 1> }
  26.    bounding_box <-1, -1, -1>, <1, 1, 1>
  27.    rotate <30, 0, 0>
  28.    shiny_red
  29.    }
  30.